<%@page import="com.nuaa.domain.transfer.TransSupEntity"%>
<%@page import="com.nuaa.domain.transfer.TransferEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	TransferEntity transInfo = (TransferEntity)request.getAttribute("transInfo");
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="trans_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:15px;">
	<form id='trans_order_form' method="post">
	<input type="hidden" name="id" value=<%=transInfo.getId()%>>
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单信息</td></tr>
		<tr></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=transInfo.getOrder_no()%></td>
		</tr>
		<tr>
			<td>客户编号</td>
			<td>&nbsp;<%=transInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=transInfo.getBusiness_type()%></td>
		</tr>
		<tr>
			<td>下单时间</td>
			<td>&nbsp;<%=transInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>产品平均重量</td><td>&nbsp;<input type="text"class="easyui-validatebox textbox" data-options="required:false,validType:'mone'" name="ave_weight" value=<%=transInfo.getAve_weight()==null?"":transInfo.getAve_weight()%>> &nbsp;LB</td>
		</tr>
		<tr>
			<td>中转的总包裹数</td><td>&nbsp;<input class="easyui-validatebox textbox" data-options="required:true,validType:'integer',missingMessage:'请输入中转的总包裹数'" type="text" name="box_total" value=<%=transInfo.getBox_total()%>></td>
		</tr>
		<tr>
			<td><label for="repack">是否重新包装</label></td>  
			<td>
        		<select id="ifRpa" class="easyui-combobox" data-options="panelHeight:48,value:<%=transInfo.getIfRePack()%>" name="ifRePack" style="width:60px;"  >   
   					 <option value="0">是</option>   
   					 <option value="1">否</option>   
			    </select> 
			 </td>
<%-- 			 value= <%=transInfo.getIfRePack()==0?"是":"否"  --%>
		</tr>
		<tr>
		</tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="5">&nbsp;长&nbsp;<input type="text" class="easyui-validatebox textbox" data-options="required:false,validType:'mone',missingMessage:'请输入长度'"size="8" name="length" value=<%=transInfo.getLength()==null?"":transInfo.getLength()%>>
				&nbsp;&nbsp;&nbsp;宽
			     &nbsp;<input type="text" size="8" class="easyui-validatebox textbox" data-options="required:false,validType:'mone'"name="width" value=<%=transInfo.getWidth()==null?"":transInfo.getWidth()%>>&nbsp;&nbsp;&nbsp;
			       高&nbsp;<input type="text" size="8" class="easyui-validatebox textbox" data-options="required:false,validType:'mone'"name="height" value=<%=transInfo.getHeight()==null?"":transInfo.getHeight()%>>&nbsp;&nbsp;&nbsp;(单位：inch)</td>
		</tr>
	</table>
	</form>
</div>
</div>
<script>
	$(function(){
		//$("#ifRpa").combobox('setValue','否');
	});
	function subTransMod(){
		$("#trans_order_form").form('submit', {    
			url:'customer/transfer_business/subMod.do',   
		    onSubmit: function(){//发送前操作
		    	var isValid = $(this).form('validate');
				return isValid;	// 返回false终止表单提交
		    },    
		    success:function(data) {
		    	var data = eval('(' + data + ')');  
			        if(data.success == true){
			        	$.messager.alert('提示','<strong><center>'+data.msg+'</center></strong>');
			        	$("#all_trans_mod_dialog").dialog('close');
			        	$("#wait_trans_mod_dialog").dialog('close');
			        	$("#proce_trans_mod_dialog").dialog('close');
			        }else{    
			        	$.messager.alert('警告','<strong><center>'+data.msg+'</center></strong>');    
			        }
			     }  
		});  
	}
</script>
